package cc.opcol.iot.app.web;

import java.io.Serializable;

public class ResourceVo implements Serializable {
    private int code=20000;
    private String msg="";
    private Object data=null;

    public ResourceVo(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResourceVo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResourceVo() {
    }

    public ResourceVo(Object data) {
        this.data = data;
    }

    public ResourceVo(String msg, Object data) {
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
